function showData(id) {
		xmlHttp = GetXmlHttpObject()
		var url = "dynamicreturn.jsp";
		url = url + "?id=" + id;
		xmlHttp.onreadystatechange = stateChanged
		xmlHttp.open("GET", url, true)
		xmlHttp.send(null)
	}
	function stateChanged() {
		if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
			var showdata = xmlHttp.responseText;
			var strar = showdata.split(":");
			if (strar.length > 1) {
				//var strname = strar[1];
				document.getElementById("studentname").value = strar[2];
				document.getElementById("bookname").value = strar[3];
				document.getElementById("authorname").value = strar[4];
				document.getElementById("dateissued").value = strar[5];
				
			}
		}
	}
	function GetXmlHttpObject() {
		var xmlHttp = null;
		try {
			xmlHttp = new XMLHttpRequest();
		} catch (e) {
			try {
				xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
		return xmlHttp;
	}